import Vue from 'vue'

/**
 * 阿里云图片裁剪
 */
Vue.filter('aliyun_thumbnail', function (value, w, h) {
  return value ? ((value.indexOf('.aliyuncs.') !== -1) ? (value + '?x-oss-process=image/resize,m_fill,h_' + h + ',w_' + w + '') : value) : value
});
